/***********************************************************************
 * Module:  Tabs.java
 * Author:  gdut5276
 * Purpose: Defines the Class Tabs
 ***********************************************************************/

package com.lfywork.bingo.web.ui;

import java.util.*;
import javax.servlet.jsp.tagext.TagSupport;

/** @pdOid 23ff875c-5d12-45f2-8ebd-c6eceaabf2e3 */
public class Tabs extends TagSupport {
   /** @pdOid 09f3fb4e-2bde-4883-a172-9974514f48b7 */
   private String id;
   /** @pdOid ee7c17bd-3d07-4562-9ebd-59575371ce27 */
   private String width;
   /** @pdOid 9c69d731-12e7-4ec5-9c2e-96af3e9b66a4 */
   private String height;
   /** @pdOid ef104a32-2cf0-45de-9724-b3395193f86f */
   private List<Tab> tabs;
   /** @pdOid 4c7a0223-ee86-4b96-9d7c-a3a2f5da454e */
   private String templateName = tabs.ftl;
   
   /** @pdRoleInfo migr=no name=Tab assc=association1 coll=java.util.Collection impl=java.util.HashSet mult=0..* */
   public java.util.Collection<Tab> tab;
   
   /** @exception javax.servlet.jsp.JspException
    * @pdOid 3fb836b6-976b-43c0-b81e-bbd034846633 */
   public int doStartTag() throws javax.servlet.jsp.JspException {
      // TODO: implement
      return 0;
   }
   
   /** @exception javax.servlet.jsp.JspException
    * @pdOid 8d10ed8a-2604-41a1-887e-870e30b4490c */
   public int doEndTag() throws javax.servlet.jsp.JspException {
      // TODO: implement
      return 0;
   }
   
   /** @pdOid 08fe02d6-1bc9-4ee9-8fed-2f282b7091fd */
   public void executeFreemarker() {
      // TODO: implement
   }
   
   /** @pdOid e120e74a-16e2-4cb0-9352-acd0823d8744 */
   public void reset() {
      // TODO: implement
   }
   
   /** @pdOid 30e755e1-b64a-40d1-9090-fb274830170a */
   public String getId() {
      return id;
   }
   
   /** @param newId
    * @pdOid f849b403-f519-4f33-b111-850ba828ebe9 */
   public void setId(String newId) {
      id = newId;
   }
   
   /** @pdOid 0fa75b9b-f84a-45f8-8f52-fd0b270c6baf */
   public List<Tab> getTabs() {
      return tabs;
   }
   
   /** @param newTabs
    * @pdOid e96b8f3f-047f-4802-9f0b-96639911d36a */
   public void setTabs(List<Tab> newTabs) {
      tabs = newTabs;
   }
   
   /** @pdOid 35985a18-4e9f-473b-9aaa-a0df0bf2f3bb */
   public String getWidth() {
      return width;
   }
   
   /** @param newWidth
    * @pdOid ae87ca1d-9568-44f6-8801-8c79fa7f70f9 */
   public void setWidth(String newWidth) {
      width = newWidth;
   }
   
   
   /** @pdGenerated default getter */
   public java.util.Collection<Tab> getTab() {
      if (tab == null)
         tab = new java.util.HashSet<Tab>();
      return tab;
   }
   
   /** @pdGenerated default iterator getter */
   public java.util.Iterator getIteratorTab() {
      if (tab == null)
         tab = new java.util.HashSet<Tab>();
      return tab.iterator();
   }
   
   /** @pdGenerated default setter
     * @param newTab */
   public void setTab(java.util.Collection<Tab> newTab) {
      removeAllTab();
      for (java.util.Iterator iter = newTab.iterator(); iter.hasNext();)
         addTab((Tab)iter.next());
   }
   
   /** @pdGenerated default add
     * @param newTab */
   public void addTab(Tab newTab) {
      if (newTab == null)
         return;
      if (this.tab == null)
         this.tab = new java.util.HashSet<Tab>();
      if (!this.tab.contains(newTab))
         this.tab.add(newTab);
   }
   
   /** @pdGenerated default remove
     * @param oldTab */
   public void removeTab(Tab oldTab) {
      if (oldTab == null)
         return;
      if (this.tab != null)
         if (this.tab.contains(oldTab))
            this.tab.remove(oldTab);
   }
   
   /** @pdGenerated default removeAll */
   public void removeAllTab() {
      if (tab != null)
         tab.clear();
   }

}